export default {
        add(state,step){
          //state:仓库数据!
          state.list=step
        },
        dataName(state,step){
            state.name = step;
        },
        nameSign(state,step){
            state.flag = step;
        },
        beforeReq(state){
          state.msgFlag=false,
          state.loadingFlag=true,
          state.noBodyFlag=true,
          state.errorFlag=true
        },
        afterReqSuccessHasBody(state){
          state.msgFlag=false,
          state.loadingFlag=false,
          state.noBodyFlag=false,
          state.errorFlag=false
        },
        afterReqSuccessNoBody(state){
          state.msgFlag=false,
          state.loadingFlag=false,
          state.noBodyFlag=true,
          state.errorFlag=true
        },
        afterReqFail(state){
          state.msgFlag=false,
          state.loadingFlag=false,
          state.noBodyFlag=false,
          state.errorFlag=true
        },
}